
<table>
    <tr>
        <th>STT</th>
        <th>FileName</th>
        <th>Category</th>
    </tr>
    <?php
        $i = 0;
        while($row = mysqli_fetch_array($search)){ $i++;
    ?>
    <tr>
        <td><?php echo $i ?></td>
        <td><?php echo $row['filename']; ?></td>
        <td><?php switch ($row['id_catfile'])
            {
                case "10":
                    echo "RAR";
                    break;
                case "11":
                    echo "Image";
                    break;
                default:
                    echo "No specify";
            } ?>
        </td>
    </tr>
    <?php } ?>
</table>